﻿#ifndef CSensorSericesCfgOper_H
#define CSensorSericesCfgOper_H
/********************************************************************************
** @ Date:2025/01/14
** @ Author: HanJiaXin
** @ Description:算法仓配置对话框
** @ Version:1.0.0
** @ ClassName:CSensorSericesCfgOper
** @ Fun:
********************************************************************************/
#include <QDialog>
#include "ui_CSensorSericesCfgOper.h"
#include "CDevDataSensorSeries.h"

class CSensorSericesCfgOper : public QDialog
{
	Q_OBJECT

public:
	CSensorSericesCfgOper(CDevDataSensorSeries* pDevData,QWidget *parent = nullptr);
	CSensorSericesCfgOper(QString sDevGuid, QWidget *parent = nullptr);
	~CSensorSericesCfgOper();

	void setData(QString sName, QString sIP, QString sUser, QString sPassWd, QString sBeltName);

private:
	void setStyleSheetFile();   //设置样式文件
	void initConnect();         //初始化槽函数连接
	void initUi();				//初始化界面

private slots:
	void slotClose();//点击关闭按钮
	void slotSave();//点击确定按钮

private:
	Ui::CSensorSericesCfgOperClass ui;
	QString m_sDevGuid;//设备Guid
	CDevDataSensorSeries* m_pDevData;
	int m_nType;//0：增加 1:修改
};

#endif